<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>购物车</title>
    <script src="./js/cart.js"></script>
    <script src="./js/jquery.js"></script>
    <style>
        img {
            width: 30px;
        }
    </style>
</head>

<body>
    <div>
        <input type="checkbox" id="checkAll" />
        <ul id="cartList">
            <li>
                <input type="checkbox" class="ck" />
                <img src="" />
                <span>标题</span>
                <span class="price"></span>
                <span class="minus">-</span>
                <input type="text" class="num" />
                <span class="plus">+</span>
                <span class="perPrices"></span>
                <span class="del">删除</span>
            </li>
        </ul>
        <div id="totalPrice">0</div>
    </div>

    <script>
        let cart = new Cart();
        let oUl = document.getElementById("cartList");
        cart.showList(oUl);
        cart.checkAll("checkAll");
        cart.updateData();
        cart.removeData();
    </script>
</body>

</html>